package com.solome.vertx;

import java.lang.reflect.Method;

import com.solome.vertx.annotation.CheckToken;
import com.solome.vertx.annotation.Mapping;
import com.solome.vertx.annotation.ResponseMethon;

import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class RequestCache {
	Method method;
	Mapping mapping;
	CheckToken checkToken;
	ResponseMethon responseMethon;

	public RequestCache(Mapping mapping, Method method) {
		this.mapping = mapping;
		this.method = method;
		this.checkToken = method.getAnnotation(CheckToken.class);
		this.responseMethon = method.getAnnotation(ResponseMethon.class);
	}
}
